package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;
import com.itheima.pojo.Order;

import java.util.List;
import java.util.Map;

public interface MemberDao {


    public List<Member> findAll();
    public Page<Map<String, Object>> selectByCondition(String queryString);
    public void add(Member member);
    public void deleteById(Integer id);
    public Member findById(Integer id);
    public Member findByTelephone(String telephone);
    public void edit(Member member);
    public Integer findMemberCountBeforeDate(String date);
    public Integer findMemberCountByDate(String date);
    public Integer findMemberCountAfterDate(String date);
    public Integer findMemberTotalCount();
    List<Map<String, Object>> findAgeDistribution();

    public Member findReportData(int id);
    public List<String> findMemberDataSetmeal(Integer memberId);
    public long findCountByMemberId(Integer id);

    Member findMemberById(Integer id);

    List<Order> findOrderByMemberId(Integer id);
}
